<h1>New item</h1>

<% form_for(@item) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :item_name %><br />
    <%= f.text_field :item_name %>
  </p>
  <p>
    <%= f.label :item_description %><br />
    <%= f.text_area :item_description %>
  </p>
  <p>
    <%= f.label :global_item %><br />
    <%= f.check_box :global_item %>
  </p>
  <p>
    <%= 
      # f.select :firm_id, Firm.all.collect {|p| [p.name, p.id]}, {:include_blank => true} 
    %>
  </p>
  <p>
    <%= f.submit 'Create' %>
  </p>
<% end %>

<%= link_to 'Back', items_path %>
